import { formatNumber } from "@/utils";
export function config(data:any){
  data.projectInfoConfig = [
    {
      prop: 'projectCode',
      label: '项目编码：',
    },
    {
      prop: 'groupCompanyName',
      label: '集团公司：',
    },
    {
      prop: 'operateCompanyName',
      label: '经营公司：',
    },
    {
      prop: 'provinceName',
      label: '所在省份：',
    },
    {
      prop: 'regionName',
      label: '所在城市：',
    },
    {
      prop: 'siteSelectionRegion',
      label: '所在地址：',
    },
    {
      prop: 'totalBuildArea',
      label: '项目总建筑面积：',
      formatter:(row: any) => {
        return formatNumber(row.totalBuildArea, 'money') + '(㎡)'
      }
    },
    {
      prop: 'beCompletedTime',
      label: '竣工日期：',
    },
    {
      prop: 'openTime',
      label: '开业日期：',
    },
  ],
  data.billTableConfig = [
    {
      label: '序号',
      type: 'index',
      width: 60
    },
    {
      label: '合同编号',
      prop: 'contractCode',
    },
    {
      label: '资产名称',
      prop: 'assetsName',
      width: 110
    },
    {
      label: '建筑面积(㎡)',
      prop: 'buildArea',
      width: 120,
      dataType: 'number',
      decimal: 2
    },
  ]
}